package com.gdufe.studytogether.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gdufe.studytogether.domain.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    void addCommentCount(Integer id);
    void addCommentLike(@Param("uid") Integer uid, @Param("cid") Integer cid);
    void addLikeCount(@Param("id")Integer id,@Param("num")Integer num);
    void deleteCommentLike(@Param("uid")Integer uid,@Param("cid")Integer cid);

    Integer getIsCommentLike(@Param("uid")Integer uid,@Param("cid")Integer cid);
}
